import java.io.IOException;


public class Main {
    //-c   字符数
    // -w  词数
    // -l  行数
    // -o  指定输出文件
    // -e  停用词表，接文件名
    // -a  返回更复杂的数据（代码行 / 空行 / 注释行）
    // -s  递归处理目录下符合条件的文件，接文件名
    // -x  调用高级功能
    //public static final String DEFAULTPARAS[] = {"-c","-w","-l","-o","-e","-a","-s","-x"};//8个

    public static void main(String[] args) throws IOException {
        String canshu = "-w -c -l -a /home/kevin/cb/a.txt -e /home/kevin/s.txt";
        canshu = "-x";
        //String canshu = "";
        canshu = Tools.junctParas(args);

        //System.out.println(canshu);
        WordCount wordCount = new WordCount(canshu);
        wordCount.processFile();

        //String str = " {}"+System.lineSeparator();
        //System.out.println(str.replaceAll("[\\s\\{\\}]","6"));
        //String str = Tools.text2String(new File("/home/kevin/a.txt"));
        //System.out.println(wordCount.getLineCount(str));

        //System.out.println(Tools.getRealFileNameFromList("/home/kevin/cb/"));

        //System.out.println("a*".matches("a..*"));
    }
}
